home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / AppsToGo.Changes / DTS.Lib / AERequired.c.df next >
Encoding:
Text File  |  1993-06-18  |  2.6 KB  |  75 lines  |  [TEXT/MPS ]

  1. File #1: b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:AERequired.c
  2. File #2: a:Desktop Folder:AppsToGo.src:DTS.Lib:AERequired.c
  3.  
  4. Extra lines in 2nd before 14 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:AERequired.c"; Line Δ14; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:AERequired.c"; Line 14:21)
  5. /* You may incorporate this sample code into your applications without
  6. ** restriction, though the sample code has been provided "AS IS" and the
  7. ** responsibility for its operation is 100% yours.  However, what you are
  8. ** not permitted to do is to redistribute the source as "DSC Sample Code"
  9. ** after having made changes. If you're going to re-distribute the source,
  10. ** we require that you make it clear in the source that the code was
  11. ** descended from Apple Sample Code, but that you've made changes. */
  12.  
  13.  
  14.  
  15. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:AERequired.c"; Line 105; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:AERequired.c"; Line 113)
  16.                 Alert(rErrorAlert, (ModalFilterProcPtr)AlertFilter);
  17.  
  18.                 HCenteredAlert(rErrorAlert, nil, (ModalFilterProcPtr)AlertFilter);
  19.  
  20.  
  21. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:AERequired.c"; Line 136:160; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:AERequired.c"; Line 144:167)
  22.     err = noErr;
  23.     if (gWindowFormats) {
  24.         for (i = (*gWindowFormats)->numChildren; i;) {
  25.             wobj = GetChildHndl(gWindowFormats, --i);
  26.             attr = mDerefWFMT(wobj)->attributes;
  27.             if (!(attr & kwRuntimeOnlyDoc)) {
  28.                 if (attr & kwAutoNew) {
  29.                     err = NewDocumentWindow(&frHndl, mDerefWFMT(wobj)->sfType, true);
  30.                     if (err) break;
  31.                 }
  32.             }
  33.         }
  34.     }
  35.     else {
  36.         if (!gNoDefaultDocument) {
  37.             err = NewDocument(&frHndl, gAppWindowType, true);
  38.             if (!err)
  39.                 if (frHndl)
  40.                     if (err = DoNewWindow(frHndl, nil, FrontWindow(), (WindowPtr)-1))
  41.                         DisposeDocument(frHndl);
  42.         }
  43.     }
  44.  
  45.     if (!err)
  46.         err = DoOpenApplication();
  47.  
  48.     err = DoOpenApplication();
  49.     if (!err) {
  50.         if (gWindowFormats) {
  51.             for (i = (*gWindowFormats)->numChildren; i;) {
  52.                 wobj = GetChildHndl(gWindowFormats, --i);
  53.                 attr = mDerefWFMT(wobj)->attributes;
  54.                 if (!(attr & kwRuntimeOnlyDoc)) {
  55.                     if (attr & kwAutoNew) {
  56.                         err = NewDocumentWindow(&frHndl, mDerefWFMT(wobj)->sfType, true);
  57.                         if (err) break;
  58.                     }
  59.                 }
  60.             }
  61.         }
  62.         else {
  63.             if (!gNoDefaultDocument) {
  64.                 err = NewDocument(&frHndl, gAppWindowType, true);
  65.                 if (!err)
  66.                     if (frHndl)
  67.                         if (err = DoNewWindow(frHndl, nil, FrontWindow(), (WindowPtr)-1))
  68.                             DisposeDocument(frHndl);
  69.             }
  70.         }
  71.     }
  72.  
  73.  
  74. *** EOF on both files at the same time ***
  75.